<template>
    <div>
      <div id="chartContainer" style="height: 400px;"></div>
    </div>
  </template>
  
  <script>
  import * as echarts from 'echarts';
  
  export default {
  name: 'YourComponentName',
  mounted() {
    this.$nextTick(() => {
      const dataPoints = [10, 20, 30, 40, 50, 60, 70,];
      const chartContainer = document.getElementById('chartContainer');
      const myChart = echarts.init(chartContainer);
      const option = {
        xAxis: {
          type: 'category',
          data: dataPoints.map((_, index) => index + 1)
        },
        yAxis: {
          type: 'value'
        },
        series: [
          {
            data: dataPoints,
            type: 'line'
          }
        ]
      };
      myChart.setOption(option);
    });
  }
};
  </script>